<script setup>

import SvgIcon from "../Svglcon.vue";
import {ref} from "vue";

const selfRotate = ref(true)
const selfAxis = ref(true)
const lengthNum = ref('')
const rainNum = ref('')
const radio1 = ref('1')


</script>

<template>
  <div class="bodyCenter">
    <div class="preciseMoveWrap">
      <div class="preciseMoveTitleBar">
        <div>
          <svg-icon name="close"/>
        </div>

        <div class="title">精确移动旋转</div>
        <div>
          <svg-icon name="close"/>
        </div>

      </div>
      <div class="selfAxisSwitch">
        <div class="switchTitle">
          移动
        </div>
        <div class="theSwitch">
          <div class="swName">自轴移动</div>
          <el-switch
              v-model="selfAxis"
              class="ml-2"
              style="--el-switch-on-color: #13ce66; --el-switch-off-color: #ff4949;"
              :width="28"
              size="small"
          />

        </div>
      </div>
      <div class="axisKeyboardPad">
        <div class="leftPad">
          <div class="lengthInputWrap">
            <div>长度</div>
            <el-input v-model="lengthNum" style="width: 80px"/>
          </div>
          <div class="lengthSliderWrap">
            <el-slider v-model="lengthNum" :show-tooltip="false"/>
          </div>


        </div>
        <div class="rightPad">
          <div class="rightKeyboard">
            <svg-icon name="close"></svg-icon>
            <svg-icon name="close"></svg-icon>
            <div></div>
            <svg-icon name="close"></svg-icon>
            <svg-icon name="close"></svg-icon>
            <svg-icon name="close"></svg-icon>
            <svg-icon name="close"></svg-icon>
            <svg-icon name="close"></svg-icon>
            <svg-icon name="close"></svg-icon>
            <svg-icon name="close"></svg-icon>
            <svg-icon name="close"></svg-icon>
            <svg-icon name="close"></svg-icon>
            <div></div>
            <svg-icon name="close"></svg-icon>
            <div></div>


          </div>

        </div>

      </div>
      <div class="selfRotateSwitch">
        <div class="switchTitle">
          旋转
        </div>
        <div class="theSwitch">
          <div class="swName">自轴旋转</div>
          <el-switch
              v-model="selfRotate"
              class="ml-2"
              style="--el-switch-on-color: #13ce66; --el-switch-off-color: #ff4949;"
              :width="28"
              size="small"
          />

        </div>
      </div>
      <div class="rainKeyboardPad">
        <div class="leftPad">
          <div class="lengthInputWrap">
            <div>角度</div>
            <el-input v-model="rainNum" style="width: 80px"/>
          </div>
          <div class="lengthSliderWrap">
            <el-slider v-model="rainNum" :show-tooltip="false"/>
          </div>


        </div>
        <div class="rightPad">
          <div class="radioGroupsWrap">
            <el-radio-group v-model="radio1" class="radioGroups">
              <el-radio value="1" size="large">
                <div>X</div>
              </el-radio>
              <el-radio value="2" size="large">
                <div>Y</div>
              </el-radio>
              <el-radio value="3" size="large">
                <div>Z</div>
              </el-radio>
            </el-radio-group>
          </div>
          <div class="rightKeyboard">
            <svg-icon name="close"></svg-icon>
            <svg-icon name="close"></svg-icon>
            <svg-icon name="close"></svg-icon>
            <svg-icon name="close"></svg-icon>
          </div>


        </div>

      </div>
      <div class="final">
        <div><svg-icon name="close"></svg-icon></div>

      </div>
    </div>
  </div>
</template>

<style scoped lang="scss">
.bodyCenter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.preciseMoveWrap {
  width: 300px;
  height: 460px;
  box-sizing: border-box;
  border: 1px solid #797979;
  display: flex;
  flex-direction: column;
  align-items: center;


  .preciseMoveTitleBar {
    display: flex;
    height: 30px;
    justify-content: center;
    align-items: center;
    width: 300px;

    .title {
      width: 100%;
      font-size: 14px;
      text-align: left;
      color: #999999;
    }
  }

  .selfAxisSwitch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 278px;
    height: 30px;
    margin-top: 4px;
    border-bottom: #CCCCCC 1px solid;

    .switchTitle {
      font-size: 16px;
      color: #333333;

    }

    .theSwitch {
      display: flex;
      align-items: center;

      .swName {
        font-size: 14px;
        margin-right: 11px;

      }


    }


  }

  .axisKeyboardPad {
    padding-top: 13px;
    padding-bottom: 15px;
    width: 100%;
    display: flex;
    justify-content: center;

    .leftPad {
      margin-left: 15px;
      display: flex;
      flex-direction: column;
      flex: 1;

      .lengthInputWrap {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 16px;
      }

      .lengthSliderWrap {

      }
    }

    .rightPad {
      width: 165px;
      display: flex;
      justify-content: center;

      .rightKeyboard {
        display: grid;
        grid-template-columns: repeat(3, 30px);
        grid-template-rows: repeat(5, 30px);
        grid-column-gap: 18px;
        grid-row-gap: 10px;
      }
    }
  }


  .selfRotateSwitch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 278px;
    height: 30px;
    margin-top: 4px;
    border-bottom: #CCCCCC 1px solid;

    .switchTitle {
      font-size: 16px;
      color: #333333;

    }

    .theSwitch {
      display: flex;
      align-items: center;

      .swName {
        font-size: 14px;
        margin-right: 11px;

      }


    }


  }

  .rainKeyboardPad {
    padding-top: 13px;
    padding-bottom: 17px;
    width: 100%;
    display: flex;
    justify-content: center;
    .leftPad {
      margin-left: 15px;
      display: flex;
      flex-direction: column;
      flex: 1;

      .lengthInputWrap {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 16px;
      }

      .lengthSliderWrap {

      }
    }

    .rightPad {
      width: 165px;
      display: flex;
      flex-direction: column;
      align-items: center;
      flex: 1;
      padding-left: 16px;
      padding-right: 16px;

      .radioGroupsWrap {
        width: 100%;
        height:50%;

        :deep(.el-radio-group) {
          justify-content: space-between;
        }

        :deep(.el-radio) {
          margin-right: 0px;
        }

        .radioGroups {
          width: 100%;
        }
      }

      .rightKeyboard {
        height: 50%;
        display: flex;
        justify-content: space-between;

      }
    }
  }
  .final{
    height: 100%;
    width: 278px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    border-top: 1px solid #CCCCCC;

  }

}


</style>

